﻿using HuaweiCloud.Dotnet.Samples.Common;
using MongoDB.Bson.Serialization.Attributes;

namespace HuaweiCloud.Dotnet.Samples.NoSql4Mongo.Components
{
    public class EquipmentStore : BaseComponent
    {
        [BsonElement("Name")]
        public string? Name { get; set; }
        public int Price { get; set; }
        public string? Description { get; set; }

        public EquipmentStore(string? name, int price, string? description)
        {
            Name = name;
            Price = price;
            Description = description;
        }
    }
}
